package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class UniquePredicate implements Predicate {

    private int beginIndex;
    private int endIndex;
    private Subquery tableSubquery;

    public UniquePredicate(int beginIndex, Subquery tableSubquery) {
        this.beginIndex = beginIndex;
        this.endIndex = tableSubquery.getEndIndex();
        this.tableSubquery = tableSubquery;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public Subquery getTableSubquery() {
        return tableSubquery;
    }

}
